#include "WGUI.hpp"
#include <thread>
using namespace WGUI;
using namespace std;

Winform wf(L"ConsoleWindowClass");


int main()
{
	wf.Rect = { 300,300,1200,700 };
	wf.Caption = L"WGUI Winform";
	wf.Create();

	ComboBox* pcb = new ComboBox();

	pcb->Rect = { 10,10,200,30 };
	pcb->Create(wf);
	pcb->AddItems({ L"Init", L"Item" });


	Winform<>* wf2 = new Winform();
	wf2->Rect = { 300,300,1200,700 };
	wf2->Create();
	wf2->Caption = L"WGUI Winform2";

	PushButton* ppb = new PushButton;

	ppb->Rect = { 50,50,150,30 };
	ppb->Create(*wf2);
	ppb->Caption = L"PushButton";
	
	
	return WGUI::MessageLoop(wf.IsCreate());
}